Flexible measurement procedure (INITiate and FETCh)
Because the measurement procedure using the INIT command and FETC? query separates the measurement start and data acquisition procedures, it enables the most detailed control. INIT is used to start the measurement, and FETC? is used to query the data of a measurement that has been completed.
Example: | ||
'Select logical channel 1. | ||
SENS:VOLT:RANG 20 | 'Set the selected channel to 20 V range. | |
CHAN:VOLT:NSEL 2 | 'Select logical channel 2. | |
SENS:VOLT:RANG 2 |
'Set the selected channel to 2 V range | |
INIT | 'Start voltage scanning on all activated channels. | |
CHAN:VOLT NSEL 1;:FETC? | 'Query the measured data of Ch1. | |
(Read the response) | ||
CHAN:VOLT:NSEL 2;:FETC? | 'Query the measured data of Ch2. | |
(Read the response) |
The INIT command measures all voltage measurement channels. After sending the INIT command, you can query the data by specifying an individual channel with the FETC? query.